#include "../include/instruction.h"
// ANSI 颜色代码  
#define RESET   "\033[0m"  
#define RED     "\033[31m"  
#define GREEN   "\033[32m"  
#define YELLOW  "\033[33m"  
#define BLUE    "\033[34m"  
#define MAGENTA "\033[35m"  
#define CYAN    "\033[36m"  

void print_help() {  
    printf("%sUsage: zdw_gcc [options]%s\n", GREEN, RESET);  
    printf("%sOptions:%s\n", GREEN, RESET);  
    printf("  %s-f <file>%s  Specify the file to compile\n", CYAN, RESET);  
    printf("  %s-t <type>%s  Specify the compilation type,use after - f<file>\n", CYAN, RESET); 
    printf("  %s-h%s         Show this help message\n", CYAN, RESET);  
    printf("  %s-v%s         Print the version\n", CYAN, RESET);  
}  

void print_version(const char* version) {  
    printf("%szdw_gcc version %s%s\n", GREEN, version,RESET); 
}  

void print_warning(const char *message) {  
    fprintf(stderr, "%sWarning: %s%s\n", YELLOW, message, RESET);  
}  

void print_error(const char *message) {  
    fprintf(stderr, "%sError: %s%s\n", RED, message, RESET);  
} 
